import type { RouteRecordRaw } from "vue-router";
import BlankLayout from "@/components/layouts/BlankLayout.vue";
import BasicLayout from "@/components/layouts/BasicLayout/index.vue";

export const baseRoutes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "/",
    component: BlankLayout,
    children: [
      {
        path: "login",
        name: "login",
        alias: "",
        component: () => import("@/views/login/index.vue"),
        meta: {
          title: "登录"
        }
      }
    ]
  },

  {
    path: "/home",
    name: "home",
    component: BasicLayout,
    meta: { title: "首页", hideMenu: true },
    children: [
      {
        path: "index",
        name: "index",
        alias: "",
        component: () => import("@/views/home/index.vue"),
        meta: { title: "首页" }
      }
    ]
  },
  {
    path: "/setting",
    name: "setting",
    component: BasicLayout,
    meta: { title: "设置页面", hideMenu: true },
    children: [
      {
        path: "seting",
        name: "seting",
        alias: "",
        component: () => import("@/views/setting/index.vue"),
        meta: { title: "设置页面" }
      }
    ]
  },

  {
    path: "/404",
    name: "404",
    component: () => import("@/views/404/index.vue"),
    meta: { title: "404" }
  }
];
